<?php
namespace app\validate;
use think\Validate;

class Tzuser extends Validate
{
	protected $rule=[
	'name|姓名'=>[
		'require',
		'min'=>5,
		'max'=>20
		],
	'email|邮箱'=>[
		'require',
		'email'=>'email'
		],
	'password|密码'=>[
		'require',
		'min'=>3,
		'max'=>12,
		'alphaNum'
		],
	'mobile|手机'=>[
		'require',
		'mobile'
		],
	];

}